package com.ruoyi.spot.openapi.createNewOrder.service;

import java.util.List;
import com.ruoyi.spot.openapi.createNewOrder.domain.SpotOpenapiCreateNewOrder;
import com.ruoyi.spot.openapi.createNewOrder.domain.VO.SpotOpenapiCreateNewOrderVO;
import com.ruoyi.spot.openapi.kline.domain.VO.SpotOpenapiKlineVO;

/**
 * 创建新订单Service接口
 * 
 * @author saumell
 * @date 2024-08-13
 */
public interface ISpotOpenapiCreateNewOrderService 
{
    /**
     * 查询创建新订单
     * 
     * @param id 创建新订单主键
     * @return 创建新订单
     */
    public SpotOpenapiCreateNewOrderVO selectSpotOpenapiCreateNewOrderById(Integer id);

    /**
     * 查询创建新订单列表
     * 
     * @param spotOpenapiCreateNewOrder 创建新订单
     * @return 创建新订单集合
     */
    public List<SpotOpenapiCreateNewOrderVO> selectSpotOpenapiCreateNewOrderList(SpotOpenapiCreateNewOrderVO spotOpenapiCreateNewOrder);


    List<SpotOpenapiCreateNewOrderVO> selectSpotAllData();

    Integer queryCurryNumber(String currencyPair);

    /**
     * 新增创建新订单
     * 
     * @param spotOpenapiCreateNewOrder 创建新订单
     * @return 结果
     */
    public int insertSpotOpenapiCreateNewOrder(SpotOpenapiCreateNewOrder spotOpenapiCreateNewOrder);

    /**
     * 修改创建新订单
     * 
     * @param spotOpenapiCreateNewOrder 创建新订单
     * @return 结果
     */
    public int updateSpotOpenapiCreateNewOrder(SpotOpenapiCreateNewOrder spotOpenapiCreateNewOrder);

    /**
     * 批量删除创建新订单
     * 
     * @param ids 需要删除的创建新订单主键集合
     * @return 结果
     */
    public int deleteSpotOpenapiCreateNewOrderByIds(Integer[] ids);

    /**
     * 删除创建新订单信息
     * 
     * @param id 创建新订单主键
     * @return 结果
     */
    public int deleteSpotOpenapiCreateNewOrderById(Integer id);
}
